package de.baumann.browser.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R

import de.baumann.browser.api.net.vo.Improve

class ImproveHashAdapter(layoutResId: Int, data: List<Improve>?) : BaseQuickAdapter<Improve, BaseViewHolder>(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: Improve) {
        val ivImproveBg = helper.getView<ImageView>(R.id.ivImproveBg)
        ivImproveBg.setImageResource(item.bg)
        helper.setText(R.id.tvImproveTitle,item.title)
        helper.setText(R.id.tvImproveSubTitle,item.subTitle)
    }
}
